projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a517b77
)
Constant-propagate (function SYMBOL)
author
Mattias Engdegård
<mattiase@acm.org>
Thu, 3 Jun 2021 19:20:57 +0000
(21:20 +0200)
committer
Mattias Engdegård
<mattiase@acm.org>
Thu, 3 Jun 2021 19:28:10 +0000
(21:28 +0200)
* lisp/emacs-lisp/byte-opt.el (byte-optimize--substitutable-p):
Consider #'SYMBOL a constant for compile-time propagation purposes.
lisp/emacs-lisp/byte-opt.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/byte-opt.el
b/lisp/emacs-lisp/byte-opt.el
index 99e84e23ad8c5a4edc437bdb37097be0a978588f..2fff0bd4a5f517cb48056518299dfe2b49e395a3 100644
(file)
--- a/
lisp/emacs-lisp/byte-opt.el
+++ b/
lisp/emacs-lisp/byte-opt.el
@@
-343,7
+343,7
@@
Same format as `byte-optimize--lexvars', with shared structure and contents.")
(numberp expr)
(stringp expr)
(and (consp expr)
- (
eq (car expr) 'quote
)
+ (
memq (car expr) '(quote function)
)
(symbolp (cadr expr)))
(keywordp expr)))